<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:include page="../admin/common.jsp"></jsp:include>
<!DOCTYPE html>
<html lang="zh-cn">


<body>
		<div id="navLwapper">
			<div id="navL">
				<div class="navTop clearfix">
					<div class="perImg"><img alt="" src="../img/icon36.png"></div>
					<div class="perMesg">
						<p class="p1">用户名：</p>
						<div class="perName"><span title="dahuotu">${uname}</span><i>管理员</i></div>
						<p class="safety">帐号安全度：<span>低</span></p>
						<div class="safetyName">
							<span class="apcol1"></span>
						</div>
					</div>
				</div>
				<ul class="msgLink clearfix">
					<li>
						<a href="#">帐号信息<span class="mesNum"></span></a>
					</li>
					<li>
						<a href="articleList.html">增加管理员</a>
					</li>
					<li>
						<a href="#">消息中心</a>
					</li>
				</ul>
				<ul class="navMain">
					<li class="sp ">
						<a href="/medicinemgr/admin/dep">查看科室</a><span class="sp1"></span></li>
					<li class="active">
						<a href="/medicinemgr/admin/showdm">查看药品</a><span class="sp2"></span></li>
					<li class="">
						<a href="/medicinemgr/admin/showfactory">查看厂商</a><span class="sp3"></span></li>
					<li>
						<a href="">功能功能</a><span class="sp4"></span></li>
				</ul>
			</div>
		</div>
					<div class="cenMain">
						<div class="askans subMright subBs">
							<p>科室药品设置</p>
							<!--内容-->
							<div class="admin radius">
								<div class="alert alert-yellow padding">
									<span class="close rotate-hover"></span><strong>使用说明</strong>
									<p class="text-small">填写药品名称，选择药品类型，药品剂型，药品厂商（若修改的药品厂商不存在，请手动添加厂商）方便区分对待！</p>
								</div>
								<form   action="/medicinemgr/admin/madd" method="post" class="form-x">
						<div class="input-wrap">
							<label for="">
								<span class="input-title">药品名称</span>
								<input type="text" name="mname">
							</label>
						</div>	
						<div class="input-wrap">
							<label for="">
								<span class="input-title">药品类型</span>
								<select name="mtypename">
										<c:forEach items="${typelist}" var="type">
										<option value="${type.mtid }">${type.mtname}</option>
									</c:forEach>
								</select>
							</label>
						</div>	
						<div class="input-wrap">
							<label for="">
								<span class="input-title">药品剂型</span>
								<select name="mformname" id="">
									<c:forEach items="${formlist}" var="form">
										<option value="${form.mfid }">${form.mfname}</option>
									</c:forEach>
								</select>
							</label>
						</div>	
						<div class="input-wrap">
							<label for="">
								<span class="input-title">药品厂商</span>
								<select name="mfactoryname" id="">
									<c:forEach items="${factorylist}" var="factory">
										<option value="${factory.mfactoryid}">${factory.mfactoryname}</option>
									</c:forEach>	
								</select>
							</label>
						</div>	
						<div class="input-wrap">
							<label for="">
								<span class="input-title">新厂商名字</span>
								<input type="text" name="newmfactoryname">
							</label>
						</div>
						<div class="input-wrap">
							<label for="">
								<span class="input-title">新厂商地址</span>
								<input type="text" name="newmfactoryaddress">
							</label>
						</div>
						<div class="input-wrap">
							<label for="">
								<span class="input-title">新厂商电话</span>
								<input type="text" name="newmfactoryphone">
							</label>
						</div>
						<div class="input-wrap">
							<label for="">
								<span class="input-title">是否处方</span>
								非处方<input type="radio" name="prescription" checked="checked" value="非处方">
							处方<input type="radio" name="prescription" value="处方">
							</label>
						</div>
						<div class="input-wrap">
							<label for="">
								<span class="input-title">数量</span>
								 <input type="text" name="mcount">
							</label>
						</div>
							<div class="input-wrap">
							<label for="">
								<span class="input-title">到期时间</span>
								<input type="text" name="expiration" placeholder="格式为YYYY-MM-DD">
							</label>
						</div>
						<div class="textarea-wrap">
							<label for="">
								<span class="input-title">主治功能</span>
								<textarea name="mfunction"  cols="40" rows="5"></textarea>
							</label>
						</div>	
<!-- 
						<div class="form-group" id="f_1492064223658">
							<div class="label">
								<label for="f_work">
                                                    公众号类型
                                </label>
							</div>
							<div class="field">
								<div class="button-group radio">
									<label class="button active">
                                        <input id="f_work1" name="f_work" value="yes" checked="checked" type="radio" data-validate="required:请选择,length#>=1:至少选择1项"><span class="icon icon-check"></span> 服务号
                                    </label>
									<label class="button">
                                        <input id="f_work0" name="f_work" value="no" type="radio" data-validate="required:请选择,length#>=1:至少选择1项"><span class="icon icon-times"></span> 订阅号
                                    </label>
								</div>
							</div>
						</div> -->
						<div class="form-group" id="f_1492064295267">
							<div class="label">
								<label for="f_required_txt"></label>
							</div>
							<div class="field">
								<button type="submit" onclick="location.href='/medicinemgr/admin/madd'" class="button bg-green" style="width: 200px;">
									提交
								</button>
								<button type="button" onclick="location.href='/medicinemgr/admin/showdm'" class="button bg-main  win-back" style="width: 200px;">
									返回
								</button>
							</div>
						</div>
					</form>

				</div>
			</div>
		</div>
	</body>
	<script src="js/admin.js "></script>

	</html>